package com.yuandian.business.monitor.controller;

import com.yuandian.api.business_monitor.po.AlarmParams;
import com.yuandian.api.business_monitor.po.ExclusiveIndicatorsParams;
import com.yuandian.bpm.common.core.util.R;
import com.yuandian.business.monitor.service.IAlarmTypeService;
import com.yuandian.business.monitor.service.IExclusiveIndicatorsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 专属指标Controller
 *
 * @Author lishilei
 * @Date 2021/5/26 9:40
 */
@Api(value = "ExclusiveIndicators", tags = "专属指标查询接口")
@RestController
@RequestMapping("/exclusiveIndicators/")
public class ExclusiveIndicatorsController {

	@Autowired
	private IExclusiveIndicatorsService iExclusiveIndicatorsService;

	/**
	 * 查询告警类型占比数据
	 *
	 * @param params 参数
	 * @return 通用返回对象
	 */
	@PostMapping("queryExclusiveIndicatorsNum")
	@ApiOperation(value = "查询专属指标对应的原始数据包数量", notes = "查询专属指标对应的原始数据包数量")
	public R queryExclusiveIndicatorsNum(ExclusiveIndicatorsParams params) {
		return R.ok(iExclusiveIndicatorsService.queryExclusiveIndicatorsNum(params));
	}
}
